<template>
  <div class="topbar">
    <div class="wrap topbarwrap">
      <!-- 顶通栏左边 -->
      <div class="left">欢迎来到叩丁狼积分商城</div>
      <!-- 顶通栏右边 -->
      <ul class="right">
        <li>
          <img src="../assets/img/userImg.f8bbec5e.png" alt="" width="24px" />
          用户名：游客
        </li>
        <li>我的积分：--</li>
        <li>获取积分</li>
        <li>叩丁狼官网</li>
        <li class="login-btn">登录</li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
.topbar {
  height: 40px;
  line-height: 40px;
  background-color: #242b39;
  font-size: 14px;
  font-family: SourceHanSansSC;
  color: #fffefe;
  .topbarwrap {
    display: flex;
    justify-content: space-between;
    text-align: center;
    .right {
      li {
        float: left;
        margin-left: 20px;
        cursor: pointer;
        // 且并集选择器
        &.login-btn {
          width: 124px;
          background-color: #0a328e;
        }
      }
      img {
        // vertical-align: middle;垂直对齐一幅图像：
        vertical-align: middle;
        border-radius: 50%;
      }
    }
  }
}
</style>